Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUST-1220 Bump outdated dependencies #596

Merged

Conversation

isabelatkinson
Copy link
Contributor

@isabelatkinson isabelatkinson commented Mar 15, 2022

Bumps all of our outdated dependencies (excluding the few that are covered in #591). Also increases the MSRV to 1.51.0 (new MSRV for pbkdf2). The most significant breaking changes were due to updates in rustls; you can reference the changelog here.

@isabelatkinson isabelatkinson force-pushed the bump-dependencies/RUST-1220 branch from 32764ac to 34a06e3 Compare March 16, 2022 17:29
@isabelatkinson isabelatkinson force-pushed the bump-dependencies/RUST-1220 branch from 81cdf0c to 367c47c Compare March 21, 2022 16:57
@@ -146,11 +145,24 @@ fn make_rustls_config(cfg: TlsOptions) -> Result<rustls::ClientConfig> {
}
};

ClientConfig::builder()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ClientConfig was made mostly opaque in favor of a builder, documentation here. This branch calls with_single_cert on the builder which corresponds to the set_single_client_cert method we were calling on the config previously. The else branch uses the defaults suggested in the docs, which are also in line with the now-removed new function we were calling previously.

trust-dns-proto = "0.20.0"
trust-dns-resolver = "0.20.0"
typed-builder = "0.9.0"
trust-dns-proto = "0.21.1"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up needing to bump these rather than waiting for #591 because the older versions were incompatible with the new version of async-std-resolver.

@isabelatkinson isabelatkinson marked this pull request as ready for review March 21, 2022 18:48
Copy link
Contributor

@abr-egn abr-egn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@isabelatkinson isabelatkinson merged commit b7af2e5 into mongodb:master Mar 21, 2022
@isabelatkinson isabelatkinson deleted the bump-dependencies/RUST-1220 branch March 21, 2022 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants